home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Beta / Quicktime 2.0 Beta.iso / Programming Stuff / Sample Code / DTS Sample Code / MyCaptureApp ƒ 1.0b4 / MyCaptureAppShell.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-28  |  1.4 KB  |  60 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        MyApplication Shell (2.0).h
  3.     
  4.     Contains:    My Application Shell.
  5.  
  6.     Written by:    John Wang
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <1>        03/14/94    JW        Re-Created for Universal Headers.
  13.  
  14.     To Do:
  15.     
  16. */
  17.  
  18. #ifdef THINK_C
  19. #define        applec
  20. #endif
  21.  
  22. #define        topLeft(r)        (((Point *) &(r))[0])
  23. #define        botRight(r)        (((Point *) &(r))[1])
  24.  
  25. #define        kMENUBAR                    128
  26. #define        kMENU_APPLEID                128
  27.  
  28. #define        kMENU_FILEID                129
  29. #define        kMENU_FILENEW                1
  30. #define        kMENU_FILECLOSE                2
  31. #define        kMENU_FILEQUIT                4
  32.  
  33. #define        kMENU_SETTINGSID            130
  34.  
  35. #define        kMENU_RESIZEID                131
  36.  
  37. #define        kMENU_SPECIALID                132
  38. #define        kMENU_SPECIALPLAYTHRU        1
  39. #define        kMENU_SPECIALSEPARATEFILES    2
  40.  
  41. #define        kMENU_RECORDID                133
  42. #define        kMENU_RECORDSTART            1
  43.  
  44. #define        kALERT_ABOUT                128
  45. #define        kALERT_ERROR                129
  46.  
  47. /* ------------------------------------------------------------------------- */
  48.  
  49. void            main(void);
  50.  
  51. void            Initialize(void);
  52. void            DoCommand(long mResult);
  53. void            AdjustMenus(void);
  54. void            Finishup(void);
  55.  
  56. pascal OSErr    AEOpenHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  57. pascal OSErr    AEOpenDocHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  58. pascal OSErr    AEPrintHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  59. pascal OSErr    AEQuitHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  60.